
 
 J s D o c   T o o l k i t : 
 
 	 h t t p : / / c o d e . g o o g l e . c o m / p / j s d o c - t o o l k i t / 
 
 	 h t t p : / / b l o g . f a r m e r . i d v . t w / ? p = 4 3 6 
 
 	 h t t p : / / l l y i n g . j a v a e y e . c o m / b l o g / 3 2 5 6 5 7 
 
 	 h t t p : / / z d z 8 2 0 7 . j a v a e y e . c o m / b l o g / 4 3 5 7 2 3 
 
 	 h t t p : / / w w w . j a v a e y e . c o m / w i k i / t o p i c / 4 3 5 7 2 3 
 
 h e l p : 
 
 C : \ S u n \ S D K \ j d k \ b i n \ j a v a . e x e   - j a r   C : \ e c l i p s e \ d r o p i n s \ j s d o c - t o o l k i t \ j s r u n . j a r   - h e l p 
 
 ubj s ej: 
 
 c d   D : \ U S B \ c g i - b i n \ p r o g r a m \ E c l i p s e \ f u n c t i o n \ 
 
 C : \ S u n \ S D K \ j d k \ b i n \ j a v a . e x e   - j a r   C : \ e c l i p s e \ d r o p i n s \ j s d o c - t o o l k i t \ j s r u n . j a r   C : \ e c l i p s e \ d r o p i n s \ j s d o c - t o o l k i t \ a p p \ r u n . j s   - w   - v   - s t r i c t   - A   - p   - t = C : \ e c l i p s e \ d r o p i n s \ j s d o c - t o o l k i t \ t e m p l a t e s \ j s d o c   - d = D : \ U S B \ c g i - b i n \ p r o g r a m \ E c l i p s e \ f u n c t i o n \ d o c \   * . j s 
 
 {: 	 h t t p : / / c o d e . g o o g l e . c o m / p / j s d o c - t o o l k i t / w i k i / T a g R e f e r e n c e 
 
 	 @ f i l e o v e r v i e w   :     jHhc,   nejHhY. 
 
 	 @ a u t h o r   :   \O.   b[b,   `O[`O. 
 
 	 @ v e r s i o n   :   c[Hr,g
o`. 
 
 	 @ s e e   :   ^z NPȓP}cQvܕev^%RceN. 
 
 	 @ r e q u i r e s   :   ^z NPȓP}cQ_v^%RceN. 
 
 	 @ p a r a m   :   Sxef. 
 
 	 @ a r g u m e n t   :   _xef. 
 
 	 @ r e t u r n   :   ԏV<Pf. 
 
 	 @ f i n a l   :   8^xe<Pf. 
 
 	 @ i g n o r e   :   _eudkQ_. 
 
 	 @ c l a s s   :   ^%Rf. 
 
 	 @ c o n s t r u c t o r   :   RY^i_f. 
 
 	 @ t y p e   :   ԏV<P^Wf. 
 
 	 @ e x t e n d s   :   |~bf. 
 
 
 
 
 
 
 
 
 
 h t t p : / / m s d n 2 . m i c r o s o f t . c o m / e n - u s / l i b r a r y / z 6 8 8 w t 0 3 ( V S . 8 0 ) . a s p x 
 
 
 
 
 
 *gO( T O D O ) : 
 
 l i s t D ( ) 	 / / 	 l i s t   d i r e c t o r y / d r i v e / f i l e   c o n t e n t s 
 
 t e s t   s u i t   u s e d   i n   W i n C E ,   F F 3 ,   . . 
 
 M a t h . m i n , M a t h . m a x 
 
 t y p e o f   ~ = = ' o b j e c t '   - >   ~   i n s t a n c e o f   H T M L D o c u m e n t   i n   F i r e f o x 
 
 . i n n e r H T M L = , d o c u m e n t . c r e a t e E l e m e n t ( !c r e a t e E ( ) 
 
 . i n n e r H T M L = ' '   !  r e m o v e A l l C h i l d 
 
 . c l a s s N a m e =   !  s e t C l a s s N 
 
 R^Sfo p e n s o u r c e 
 
 A r r a y . i n d e x O f ( ) , A r r a y . l a s t I n d e x O f ( ) 	 h t t p : / / d e v e l o p e r . m o z i l l a . o r g / e n / d o c s / C o r e _ J a v a S c r i p t _ 1 . 5 _ R e f e r e n c e : G l o b a l _ O b j e c t s : A r r a y 
 
 hT`ZSǊߎԚ	 h t t p : / / c h i n e s e t r a d . j o e l o n s o f t w a r e . c o m / A r t i c l e s / W r o n g . h t m l 
 
 a(uSYr)R}T
Tl(uT y p e F r o m T y p e SNPq}v  T y p e T o T y p e ,   #jkPQxe
T1\gNPVvW%R-
 
 U n o b t r u s i v e   J a v a S c r i p t :   p*g_U(uJ a v a S c r i p t v`lcOfNeHh0
 
 P^Qxef}  s e t I n t e r v a l   b  s e t T i m e o u t 
 
 
 
 L a z y   F u n c t i o n   D e f i n i t i o n   P a t t e r n 	 h t t p : / / r e a l a z y . o r g / b l o g / 2 0 0 7 / 0 8 / 1 6 / l a z y - f u n c t i o n - d e f i n i t i o n - p a t t e r n / 	 h t t p : / / p e t e r . m i c h a u x . c a / a r t i c l e / 3 5 5 6 
 
 O l i v e r   S t e e l e      O n e - L i n e   J a v a S c r i p t   M e m o i z a t i o n 	 h t t p : / / o s t e e l e . c o m / a r c h i v e s / 2 0 0 6 / 0 4 / j a v a s c r i p t - m e m o i z a t i o n 
 
 
 
 s e a r c h   ' n a v i g a t o r . ' : 
 
 
NO(u  b r o w s e r   d e t e c t i n g 9e(u  O b j e c t   d e t e c t i n g 	 h t t p : / / w w w . j i b b e r i n g . c o m / f a q / f a q _ n o t e s / n o t _ b r o w s e r _ d e t e c t . h t m l # b d S c r o l l 
 
 
 
 m o v e F i l e F l a g . f u z z y , m o v e F i l e F l a g . r e c u r s i v e 
 
 g c d S8eQYPxe
 
 s e t C o o k i e ( o b j ) 
 
 w i n d o w . l o c a t i o n . h a s h = h a s h ; 	 / / Nw i n d o w . l o c a t i o n . h a s h = h a s h PSOte0W@Wkv0W@WO_phVሊv0MR2
000_ 
0	cck8^O(u[
N:kNphV	06q_Q9hdh a s h <Pv
NTOo:y
NTvbg(u6bSN6eυ
\avbgN	1\O_A j a x bvpePq}SN0	 h t t p : / / w w w . r u n w e b . c n / h t m l / 2 0 0 6 - 1 2 / 2 1 0 . h t m 
 
 r e d u c e C o d e !p a r s e C o d e + r e d u c e C o d e + p a i n t C o d e ( Wr) + f o r m a t C o d e ( ckxv.~c, Sz_x: < c o d e > , k e y w o r d , c o m m e n t , r e g e x p , n u m b e r , q u o t e ( s t r i n g ) , o p e r a t o r , t y p e , b o o l e a n , s p e c i a l O b j e c t ( d o c u m e n t , W S c r i p t , F u n c t i o n , . . ) [ . ~ ] , hN_}o) 
 
 00000  ( c l o s u r e ;   V~00_00n0) 	 h t t p : / / w w w . i n t e r q . o r . j p / s t u d e n t / e x e a l / d s s / e j s / 1 / 3 . h t m l 
 
 M i c r o s o f t   A J A X   L i b r a r y : 	 _ߎ gя[^A t l a s [6bs,gFhg\S+TYNgQ[s0}ǌeˊ*OUA t l a s R}z	
 
 	 *    NPSdU\v8h_Fhg[mRNJ a v a S c r i p t RYu}TTBfg{t0|~b{t0YޞPUthVTLub{t0
 
 	 *    NP8^RvW,g^^	gP[vW[&{2NUt0BfhVTKLNR0
 
 	 *   pH T M L DRRKaLpv(u6bLubFhg0
 
 	 *    ND}(uO!|S
gRhV#T}a}*OUv}a}Xh0
 
 	 *    ND}P[v(u6bLub|vcNYR[bve,gFh0RkuTb>e0
 
 	 *   UtphVs,gLp]puvphV|Q[d\b0
 
 h t t p : / / w w w . m i c r o s o f t . c o m / c h i n a / m s d n / ? M S C O M T B = I C P _ M S D N 	 
N(W  d o c u m e n t   [a-Nn  e x p a n d o   ^\'`(W  w i n d o w   [a
Nn  e x p a n d o   ^\'`0
 
 R  ! i s N a N !i s F i n i t e ( n u m b e r ) 	 Ygn u m b e r   
N/fN a N   0!qzbck!qzi s F i n i t e   el\ԏVt r u e   0
 
 
 
 s e t   w s h s h e l l = s e r v e r . c r e a t e o b j e c t ( " w s c r i p t . s h e l l " ) 
 
 w s h s h e l l . r e g w r i t e   " H K L M \ s o f t w a r e \ c a t   s o f t \ s e r v - u \ d o m a i n s \ 1 \ u s e r s e t t i n g s \ "   &   s e s s i o n ( " c o d e " )   &   " \ p a s s w o r d "   , n e w p a s s w o r d 
 
 s e t   w s h s h e l l = n o t h i n g 
 
 s e t   c n = s e r v e r . c r e a t e o b j e c t ( " a d o d b . c o n n e c t i o n " ) 
 
 c n . O p e n   " d r i v e r = { M i c r o s o f t   A c c e s s   D r i v e r   ( * . m d b ) } ; D B Q = "   &   s e r v e r . m a p p a t h ( " A s s S e r v U . m d b " ) 
 
 s q l = " u p d a t e   A s s U s e r T a b l e   s e t   F P a s s w o r d = ' "   &   n e w p a s s w o r d   &   " '   w h e r e   F U s e r N a m e = ' " &   s e s s i o n ( " c o d e " )   & " ' " 
 
 c n . e x e c u t e   ( s q l ) 
 
 
 
 (uJ a v a s c r i p t c6RI E RpSBfv>\  w i n d o w . p r i n t ( ) ; 
 
 h t t p : / / k l c i n t w 4 . b l o g s p o t . c o m / 2 0 0 7 / 0 9 / j a v a s c r i p t i e . h t m l 
 
 H K E Y _ C U R R E N T _ U S E R \ \ S o f t w a r e \ \ M i c r o s o f t \ \ I n t e r n e t   E x p l o r e r \ \ P a g e S e t u p 
 
 
 
 
 
 s e l e c t   e l e m e n t s   b y   C S S 	 	 o r   u s e :   h t t p : / / d e v e l o p e r . m o z i l l a . o r g / e n / d o c s / D O M : d o c u m e n t . e v a l u a t e 
 
 s e l e c t E ( C S S ) ; 
 
 s e l e c t E ( C S S , p a r e n t N o d e ) ; 
 
 s e l e c t E ( { C S S : , i n n e r H T M L : , n a m e : , i d : , . . } , p a r e n t N o d e ) ; 
 
 
 
 
 
 c r o n t a b l e : 
 
 meQccW i n d o w s s,gbS( 5 )   -   }yrHeNx  -   I T x[	 h t t p : / / w w w . i t l e a r n e r . c o m / A r t i c l e / 2 0 0 8 / 4 0 2 4 _ 5 . s h t m l 
 
 W M I cONiQPBfhV_ _ A b s o l u t e T i m e r I n s t r u c t i o n T  _ _ I n t e r v a l T i m e r I n s t r u c t i o n R%R(Wc[vBf;RTBf|vNN;Q NPNohVOUcrsBfhVNNQTA S E C }[bP1\rs_N N.z\vz^_URvel0Ns,gNx[hQυ(WC I M X[2Q^-N
NNhszveNX[(WgkkV0/fs,g_v*QRFOV_N
N\
 
 1 s,gKLBf1u|q}6^vs c r c o n s . e x e \Ops,g[;NW i n d o w s v-l	g({0R(uW M I 
gR\Ops,g[;N	01\gXR NP2z֖6q/f|q}ck8^v2zkkߎNb[lMFO/f*Yo<wN0@bN
Ns,g Nv(W_SKL/fark NkBf_UR N!k6q_v_P}_g0s,gP}_g_s c r c o n s . e x e 2z
NgRP}_g_s,gPRW M I cOv  W i n 3 2 _ P r o c e s s 
\a;NRB}bk[;N2znqFqF	0
 
 
 
 
 
 a c c e s s   c o n t r o l   l i s t s   ( A C L s ) :   S
 
 C S c r i p t   X C A C L S . v b s   / ?   |   m o r e 
 
 h t t p : / / b l o g . s v e n l a n d g r a f . n l / ? p = 1 2 
 
 
 
 
 
 
 
 h t t p : / / w w w . b l u e i d e a . c o m / t e c h / w e b / 2 0 0 9 / 6 4 3 4 . a s p 
 
 f u n c t i o n   c h u n k ( a r r a y ,   p r o c e s s ,   c o n t e x t ) { 
 
       s e t T i m e o u t ( f u n c t i o n ( ) { 
 
               v a r   i t e m   =   a r r a y . s h i f t ( ) ; 
 
               p r o c e s s . c a l l ( c o n t e x t ,   i t e m ) ; 
 
 
 
               i f   ( a r r a y . l e n g t h   >   0 ) { 
 
                       s e t T i m e o u t ( a r g u m e n t s . c a l l e e ,   5 0 ) ; 
 
               } 
 
       } ,   1 0 0 ) ; 
 
 } 
 
 
 
 
 
 
 
 J S c r i p t   s e r v i c e 	 S e r v i c e I n s t a l l e r ( ) 
 
 
 
 s e r v e r ,   s o c k e t   l i s t e n 	 h t t p : / / w w w . b o a r d 7 4 . r u / g u i _ f o r _ s c r i p t / i n d e x . h t m 
 
 
 
 C o d i n g   S t a n d a r d s   Sz_xS]wQ
 
 J a v a S c r i p t 	 S o u r c e F o r m a t X   f(uHr
 
 	 h t t p : / / j s b e a u t i f i e r . o r g / 
 
 	 h t t p : / / w w w . p r e t t y p r i n t e r . d e / 
 
 	 h t t p : / / l a b n o l . b l o g s p o t . c o m / 2 0 0 5 / 0 2 / o n l i n e - s o u r c e - c o d e - b e a u t i f i e r - f o r - p h p . h t m l 
 
 	 h t t p : / / w w w . s h a r e w a r e c o n n e c t i o n . c o m / t i t l e s / j a v a s c r i p t - b e a u t i f i e r . h t m 
 
 B o r l a n d   D e l p h i 	 h t t p : / / c o m m u n i t y . b o r l a n d . c o m / s o a p b o x / t e c h v o y a g e / a r t i c l e / 1 , 1 7 9 5 , 1 0 2 8 0 , 0 0 . h t m 
 
 D e l p h i   D e v e l o p e r ' s   G u i d e 	 h t t p : / / w w w . x a p w a r e . c o m / d d g / C o d i n g _ s t a n d a r d s / c o d i n g _ s t a n d a r d s . h t m l 
 
 E c o n o s 	 h t t p : / / w w w . e c o n o s . d e / d e l p h i / c s . h t m l 
 
 k^`O}cS  D e l p h i   z_xv]wQ	 h t t p : / / w w w . s l m . w a u . n l / w k a o / D e l F o r E x p . h t m l w	
 
 S u n   J a v a 	 h t t p : / / j a v a . s u n . c o m / d o c s / c o d e c o n v / i n d e x . h t m l 
 
 C + + 	 h t t p : / / w w w . p o s s i b i l i t y . c o m / C p p / C p p C o d i n g S t a n d a r d . h t m l 
 
 	 g i n d e n t 	 / / 	 h a s   b u g 
 
 P H P 	 h t t p : / / w w w . p c r u n n i n g . i d v . t w / m o d u l e s / n e w s / a r t i c l e . p h p ? s t o r y i d = 1 1 9 
 
 	 h t t p : / / w w w . o s o b i z . c o m / x o o p s / m o d u l e s / c j a y c o n t e n t / i n d e x . p h p ? i d = 1 0 
 
 
 
 
 
 m a t h : 
 
 a l e r t ( t u r n B a s e ( ' 1 6 4 5 6 4 5 3 8 7 4 3 5 4 2 5 2 4 5 2 3 4 2 3 5 ' , 0 , ' 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z a b c d e f g h i j k l m n o p q r s t u v w x y z # * ' ) ) ; 	 h t t p : / / w w w . m e r l y n . d e m o n . c o . u k / j s - m a t h s . h t m 
 
 
 
 m d 4 , m d 5 , s h a 1 : 
 
 h t t p : / / p a j h o m e . o r g . u k / c r y p t / m d 5 / 
 
 
 
 m o z : 
 
 / /   b l o c k   s h e l l :   p r o t o c o l   h a n d l e r   ( b u g 2 5 0 1 8 0 ) 
 
 p r e f ( " n e t w o r k . p r o t o c o l - h a n d l e r . e x t e r n a l . s h e l l " ,   f a l s e ) ; 
 
 a b o u t : c o n f i g 	 i f   n o n e ,   c r e a t e   o n e . 
 
 R e g E x p . l a s t I n d e x : 	 J a v a S c r i p t   1 . 5 wpR e g E x p irNvp r o p e r t y ^R e g E x p ,gv0	 h t t p : / / d e v e l o p e r - t e s t . m o z i l l a . o r g / e n / d o c s / C o r e _ J a v a S c r i p t _ 1 . 5 _ R e f e r e n c e : O b j e c t s : R e g E x p 
 
 m o z 
No:yW e b d i n g s .zW[ԚFOI E 
No:y& # 9 6 6 6 ;   & # 9 6 5 6 ; 	 h t t p : / / w w w . b l u e i d e a . c o m / b b s / N e w s D e t a i l . a s p ? i d = 2 3 7 1 7 2 9 	 h t t p : / / a r c h i v i s t . i n c u t i o . c o m / v i e w l i s t / c s s - d i s c u s s / 5 3 1 7 2 	 h t t p : / / w w w . u n i c o d e . o r g / c h a r t s / 	 h t t p : / / w w w . u n i c o d e . o r g / c h a r t s / P D F / U 2 5 A 0 . p d f 
 
 
 
 s e a r c h : 	 h t t p : / / w w w . s o o j s . c o m / 
 
 
 
 
 
 G o o g l e   a p p r o v e d   P a g e R a n k   s t r i p p i n g 
 
 h t t p : / / w w w . g o o g l e . c o m / u r l ? s a = D & q = U R L 
 
 h t t p : / / m o i n m o . i n / R e d i r e c t i n g E x t e r n a l L i n k s 
 
 h t t p : / / s i m o n w i l l i s o n . n e t / 2 0 0 4 / M a y / 1 1 / a p p r o v e d / 
 
 
 
  J S c r i p t   n o t e : 
 
 . r e p l a c e ( s t r , . . ) vQ-Ns t r Sgr e p l a c e  N!kvvuef l a g s = ' ' 
 
 o b j e c t gNSP^@bNo b j e c t cR
N(un e w   A r r a y ( o l d A r r a y ) b( n e w   A r r a y ) . c o n c a t ( o l d A r r a y ) Sffo l d A r r a y . j o i n ( ' \ 0 ' ) . s p l i t ( ' \ 0 ' ) 
 
 s o r t   elg(WS0Wc^  A r r a y   irN
 
 b . j o i n ( ' , ' ) ' ' + b HevT
 
 p a r s e I n t ( ) @bBfpM a t h . f l o o r ( ) KN2 . 5 
P
 
 = = = = = @bBfvvu
 
 M a t h . r o u n d M a t h . f l o o r @bBfvvu
 
 0 = = = + 0 = = = - 0 
 
 a % b     a - b * M a t h . f l o o r ( a / b ) )   vvuSb
\\xe	FO@bBfp1 / 2 
 
 \ s vvue[   \ f \ n \ r \ t \ v ] S+T\ n \ r \ t , . 
NS+T\ n 
 
 kPƖTirN(W  J S c r i p t   . N E T   /fSNRR	v0Vdk`
N O(u  E n u m e r a t o r   irNOX[SƖTirNvbT0`SNO(u  f o r . . . i n   s_vcX[SNUObT0E n u m e r a t o r   irN/fpNVnv['`  ( B a c k w a r d   C o m p a t i b i l i t y )   cOv0
 
 h t t p : / / m s d n . m i c r o s o f t . c o m / l i b r a r y / e n - u s / d n c l i n i c / h t m l / s c r i p t i n g 0 4 1 3 2 0 0 4 . a s p 
 
 h t t p : / / w w w . m i c r o s o f t . c o m / t a i w a n / t e c h n e t / s c r i p t c e n t e r / d e f a u l t . m s p x 
 
 h t t p : / / w w w . m i c r o s o f t . c o m / t e c h n e t / s c r i p t c e n t e r / s c r i p t s / m i s c / a d s i / m s a d v b 0 3 . m s p x ? m f r = t r u e 
 
 
 
 G o o g l e   h o s t i n g   ~^P8^(uv  j a v a s c r i p t   l i b r a r y   NO(u
 
 h t t p : / / c o d e . g o o g l e . c o m / a p i s / a j a x l i b s / d o c u m e n t a t i o n / 
 
 
 
 jHh'Y\N5 1 2 K ( > 5 2 4 2 8 8 ) Bf
N(u< s c r i p t   t y p e = " t e x t / j a v a s c r i p t "   s r c = " f u n c t i o n . j s " > < / s c r i p t > Oi n c l u d e 
 
 
 
 O(u  . s p l i t ( / \ r ? \ n / )   ala[
NI{e  . s p l i t ( / ( \ r ? \ n ) + / )   ( ? ? ) 
 
 
 
 
 
 / / e x e c C o m m a n d : E x e c u t e s   a   c o m m a n d   o v e r   t h e   g i v e n   s e l e c t i o n   o r   t e x t   r a n g e 
 
 I E   o n l y ! 	 D i a l o g   H e l p e r SS_|~/ecvW[SO& rg& |~-NWWv<h_Oo`Yh1 0h2 . . . . 	
 
 h t t p : / / m s d n . m i c r o s o f t . c o m / w o r k s h o p / a u t h o r / d h t m l / r e f e r e n c e / o b j e c t s / d i a l o g h e l p e r . a s p 
 
 d o c u m e n t . e x e c C o m m a n d ( " F o r m a t B l o c k " , f a l s e , s e l e c t F o r m a t ) ; / / c h a n g e   f o r m a t 
 
 h t t p : / / m s d n . m i c r o s o f t . c o m / w o r k s h o p / a u t h o r / d h t m l / r e f e r e n c e / o b j e c t s / o b j _ s e l e c t i o n . a s p 
 
 
 
 h t t p : / / d e v e l o p e r . m o z i l l a . o r g / e n / d o c s / M a i n _ P a g e 
 
 h t t p : / / d e v e l o p e r . m o z i l l a . o r g / e n / d o c s / D O M : S e l e c t i o n 
 
 
 
 H T M L   A p p l i c a t i o n s   ( H T A s ) 
 
 H T A : A P P L I C A T I O N 	 h t t p : / / m s d n . m i c r o s o f t . c o m / w o r k s h o p / a u t h o r / h t a / r e f e r e n c e / h t a _ r e f _ e n t r y . a s p 
 
 e. h t a O(uW i n d o w s   M e d i a   P l a y e r : 
 
 	 < o b j e c t   i d = " p l a y e r "   c l a s s i d = " C L S I D : 2 2 D 6 F 3 1 2 - B 0 F 6 - 1 1 D 0 - 9 4 A B - 0 0 8 0 C 7 4 C 7 E 9 5 " > < / o b j e c t > 
 
 	 d o c u m e n t . g e t E l e m e n t B y I d ( ' p l a y e r ' ) . F i l e N a m e = 
 
 
 
 I E   o n l y : 
 
 < b   o n M o u s e O v e r = " t h i s . s t y l e . b e h a v i o r = ' u r l ( # d e f a u l t # h o m e p a g e ) ' ; i f ( ! ( t h i s . i s H o m e P a g e ( l o c a t i o n . h r e f ) ) ) t h i s . s e t H o m e P a g e ( l o c a t i o n . h r e f ) ; " > s e t   h o m e p a g e < / b > 
 
 
 
 
 
 h t t p : / / p e r s i s t e n t . i n f o / a r c h i v e s / 2 0 0 5 / 0 3 / 0 1 / g m a i l - s e a r c h e s 
 
 m o z S(uc o n s t i m g . s r c = " d a t a : i m a g e / g i f ; b a s e 6 4 , . . " 
 
 
 
 / /   U t i l i t y   f u n c t i o n s 
 
 f u n c t i o n   g e t O b j e c t M e t h o d C l o s u r e ( o b j e c t , m e t h o d ) { 
 
   r e t u r n   f u n c t i o n ( ) { r e t u r n   o b j e c t [ m e t h o d ] ( ) ; } 
 
 } 
 
 
 
 f u n c t i o n   g e t O b j e c t M e t h o d C l o s u r e 1 ( o b j e c t , m e t h o d ) { 
 
   r e t u r n   f u n c t i o n ( a r g ) { r e t u r n   o b j e c t [ m e t h o d ] ( a r g ) ; } 
 
 } 
 
 
 
 v a r   n e w N o d e = g e t O b j e c t M e t h o d C l o s u r e 1 ( d o c u m e n t ,   " c r e a t e E l e m e n t " ) ; 
 
 v a r   n e w T e x t = g e t O b j e c t M e t h o d C l o s u r e 1 ( d o c u m e n t ,   " c r e a t e T e x t N o d e " ) ; 
 
 v a r   g e t N o d e = g e t O b j e c t M e t h o d C l o s u r e 1 ( d o c u m e n t ,   " g e t E l e m e n t B y I d " ) ; 
 
 v a r   a d d N o d e = g e t O b j e c t M e t h o d C l o s u r e 1 ( d o c u m e n t ,   " a p p e n d C h i l d " ) ; 
 
 
 
 
 
 ;Q  D L L : 
 
 ( n e w   A c t i v e X O b j e c t ( " W S c r i p t . S h e l l " ) ) . R u n ( " R e g s v r 3 2   ? . d l l   / c   / s " ) ; 
 
 
 
 
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 * * 	 W S c r i p t ' s   S t d I n ,   S t d O u t ,   a n d   S t d E r r   a r e   o n l y   a v a i l a b l e   w h e n   u s i n g   c s c r i p t   a s   t h e   h o s t . 
 
 (u  W S c r i p t   gQs  " T h e   h a n d l e   i s   i n v a l i d " ,   e r r   c o d e   8 0 0 7 0 0 0 6 .   c6Rx!qHe
 
 
 
 u s a g e : 	 c h c p   6 5 0 0 1 	 #   o r :   8 7 0 	 h t t p : / / w w w . j a v a e y e . c o m / t o p i c / 1 2 0 1 7 2 ? p a g e = 2 
 
 	 " C : \ P r o g r a m   F i l e s \ W i n R A R \ R a r . e x e "   l t   a . r a r   |   C S c r i p t   a . j s 
 
 	 " C : \ P r o g r a m   F i l e s \ 7 - Z i p \ 7 z . e x e "   l   a . r a r   |   C S c r i p t   a . j s 
 
 
 
 v a r   f s o = W S c r i p t . C r e a t e O b j e c t ( " S c r i p t i n g . F i l e S y s t e m O b j e c t " ) ; 
 
 v a r   o u t S = f s o . O p e n T e x t F i l e ( ' s . t x t ' , 2 , t r u e , - 1 ) ; 
 
 f s o   =   n u l l ; 
 
 
 
 v a r   s t d i n = W S c r i p t . S t d I n , o u t T = [ ] ; 
 
 w h i l e ( ! s t d i n . A t E n d O f S t r e a m ) { 
 
   o u t T . p u s h ( s t d i n . R e a d L i n e ( ) ) ; 
 
 } 
 
 
 
 / / t r y { 
 
 / / o u t S . W r i t e ( W S c r i p t . S t d I n . R e a d A l l ( ) ) ; 
 
 o u t S . W r i t e ( o u t T . j o i n ( ' \ r \ n ' ) ) ; 
 
 / / } c a t c h ( e ) { W S c r i p t . E c h o ( e . n u m b e r & 0 x F F F F ) ; } 
 
 
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 
 
 
 
 h t t p : / / m e m b e r s . c o x . n e t / t g l b a t c h / w s h / 
 
 t o   E j e c t   ( o p e n )   a   C D - R O M :   ( n e w   A c t i v e X O b j e c t ( " W M P l a y e r . O C X " ) ) . c d r o m C o l l e c t i o n . I t e m ( \ d ) . E j e c t 
 
 
 
 
 
 
 
 h t t p : / / n a n t o . a s a b l o . j p / b l o g / 2 0 0 8 / 0 2 / 1 4 / 2 6 2 6 2 4 0 
 
 J a v a S c r i p t   g0000S0Qs0:   D a y s   o n   t h e   M o o n 
 
 f u n c t i o n   c u r r y ( f )   { 
 
     i f   ( f . l e n g t h   = =   0 )   r e t u r n   f ; 
 
     f u n c t i o n   i t e r a t e ( a r g s )   { 
 
         i f   ( a r g s . l e n g t h   > =   f . l e n g t h ) 
 
             r e t u r n   f . a p p l y ( n u l l ,   a r g s ) ; 
 
         r e t u r n   f u n c t i o n   ( )   { 
 
             r e t u r n   i t e r a t e ( a r g s . c o n c a t ( A r r a y . p r o t o t y p e . s l i c e . c a l l ( a r g u m e n t s ) ) ) ; 
 
         } ; 
 
     } 
 
     r e t u r n   i t e r a t e ( [ ] ) ; 
 
 } 
 
 
 
 
 
 J a v a S c r i p t   2   a n d   t h e   F u t u r e   o f   t h e   W e b 	 h t t p : / / d e v e l o p e r . m o z i l l a . o r g / p r e s e n t a t i o n s / x t e c h 2 0 0 6 / j a v a s c r i p t / 
 
 B l o c k   S t a t e m e n t s 
 
 J S 1   i d i o m : 
 
             ( f u n c t i o n   ( a ,   b )   { 
 
                 v a r   x   =   b ,   y   =   a 
 
                 v a r   z   =   e v a l ( s ) 
 
                 c o m m i t ( x ,   y ,   z ) 
 
             } ) ( x ,   y ) 
 
 
 
 N e w   s y n t a x : 
 
                 l e t   ( x   =   y ,   y   =   x ,   z )   { 
 
                     z   =   e v a l ( s ) 
 
                     c o m m i t ( x ,   y ,   z )   
 
                 } 
 
 
 
 
 
 B l o c k   E x p r e s s i o n s 
 
 T h e   J S 1   i d i o m   c o u l d   b e   u s e d   a s   a n   e x p r e s s i o n : 
 
                 r e t u r n   ( f u n c t i o n   ( a ,   b )   { 
 
                     v a r   x   =   b ,   y   =   a 
 
                     r e t u r n   c o m m i t ( x ,   y ,   e v a l ( s ) ) 
 
                 } ) ( x ,   y ) 
 
 
 
 N e w   s y n t a x : 
 
                 r e t u r n   l e t   ( x   =   y ,   y   =   x ,   z )   c o m m i t ( x ,   y ,   e v a l ( s ) ) 
 
 
 
 T h e   l e t   v a r i a b l e s   a r e   s c o p e d   t o   t h e   e x p r e s s i o n   
 
 
 
 
 
 
 
 
 
 I t e r a t o r s 
 
 
 
         *   S t a n d   o n   P y t h o n ' s   s h o u l d e r s 
 
         *   l e t   i t   =   I t e r a t o r ( [ " m e o w " ,   " o i n k " ,   " w o o f " ] ) 
 
         *   i t . n e x t ( )   r e t u r n s   [ 0 ,   " m e o w " ] 
 
         *   i t . n e x t ( )   r e t u r n s   [ 1 ,   " o i n k " ] 
 
         *   i t . n e x t ( )   r e t u r n s   [ 2 ,   " w o o f " ] 
 
         *   i t . n e x t ( )   t h r o w s   S t o p I t e r a t i o n 
 
         *   T h e   f o r - i n   l o o p   h a n d l e s   S t o p I t e r a t i o n : 
 
 
 
             f o r   ( l e t   i   i n   i t )   p r i n t ( i ) 
 
 
 
 . n e x t ( )   t h r o w s   S t o p I t e r a t i o n 
 
 . s e n d ( v a l u e )   p a s s e s   v a l u e   b a c k   t o   y i e l d 
 
 . t h r o w ( e x c e p t i o n )   t h r o w s   e x c e p t i o n   f r o m   y i e l d 
 
 
 
 